﻿using System;
using System.Data;
using System.Data.SqlClient;
using System.Collections;
using System.Configuration;
using System.Net;
using System.IO;
namespace ProcessesSMS
{
    /// <summary>
    /// Summary description for CKVN.
    /// </summary>
    public class TEST
    {

        private string connStringViettel = ConfigurationSettings.AppSettings["SMSConnStrViettel"].ToString();
        private SMS_MO WMO;
        private SMS_MT WMT;
        //private SMS_LIST WML;
        ArrayList arr = new ArrayList();
        public TEST(SMS_MO MO)
        {
            WMO = MO;
        }

        public TEST()
        {
        }
        public void run()
        {
            WMT = new SMS_MT(WMO);
            //string tmpMsg = WMO.Message.Substring(WMO.CommandCode.Length).Trim().Replace("  ", " ").Replace("  ", " ");
            //tmpMsg = tmpMsg.Replace("  ", " ").Trim().ToUpper();
            //string[] msg = tmpMsg.Split(new char[] { ' ' });
            string strReturnMsg = "Dich vu 7x62. Cong ty co phan truyen thong Hanelcom.He_Thong_Hoat_Dong_Tot-=~!@#$%^&*()";//
            //if (strReturnMsg != "")
            //{           
            WMT.AddMessage(WMO.UserID, strReturnMsg, SMS_ContentType.SMS_TEXT);
            WMT.MsgType = SMS_MsgType.SMS_TINHTIEN;
            WMT.Insert();
            //}
            return;
        }
        
    }
}
